<template>
   <div class="produce-in-table-wrap">
    <el-table
      :data="tableData"
      style="width: 100%"
      :border="true"
      :fit="true"
      :stripe="true"
      size="mini"
      align="center">
      <el-table-column
        prop="id"
        label="id"
        min-width="100"
        align="center">
      </el-table-column>

      <el-table-column
        prop="order"
        label="出库单号"
        min-width="180"
        align="center">
      </el-table-column>

      <el-table-column
        prop="date"
        label="出库日期"
        min-width="270"
        align="center">
      </el-table-column>

      <el-table-column
        prop="state"
        label="类型"
        min-width="120"
        align="center">
      </el-table-column>

      <el-table-column
        prop="do_name"
        label="制单人"
        min-width="120"
        align="center">
      </el-table-column>
      <el-table-column label="操作"
      min-width="180"
      align="center">
        <template slot-scope="scope">
          <el-button
            size="mini"
            plain
            type="primary"
            @click="ckeck(scope.row)">查看</el-button>
        </template>
      </el-table-column>
    </el-table>
    <deleteConfirm v-if="showMask" @closeDelete="closeDelete" @deleteConfirm="deleteConfirm"></deleteConfirm>
  </div>
</template>
<script lang="ts">
import Vue from 'vue';
import Component from 'vue-class-component';
import { Prop, Emit } from 'vue-property-decorator';
import ajaxResquest from '@/api/apiRequest';

@Component({})
export default class ProduceInTable extends Vue {
  @Prop({
    type: Array
  })
  tableData!: any[];
  showMask: boolean = false;
  mounted() {}
  // @Emit('tableEdit')
  ckeck(row: any) {
    console.log(row);
    this.$to('auxiliaryOutCheck', {id: row.id });
  }
}
</script>
<style lang="less">
.produce-in-table-wrap {
}
</style>
